package handler;

import io.netty.buffer.Unpooled;
import io.netty.channel.*;

public class RtmpHandler extends ChannelInboundHandlerAdapter {
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        super.channelRead(ctx, msg);
        byte[] data = (byte[]) msg;
        ctx.writeAndFlush(Unpooled.copiedBuffer(data));
    }
}
